package com.iwhalecloud.springcloud.eureka.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.iwhalecloud.springcloud.eureka.remote.TestNgPortal;
import com.iwhalecloud.springcloud.eureka.remote.TestRemote;

/**
 * Created by lib.
 * Date: 2019-01-02
 */
@RestController
public class TestRemoteController {

    @Autowired
    TestRemote testRemote;
    @Autowired
    TestNgPortal testNgPortal;
    @RequestMapping("/testRemote")
    public String test() {
        return testRemote.hello("test");
    }
    @RequestMapping("/testPortal")
    public String testPortal(){
    	return testNgPortal.hello(2L);
    }
}
